.class public Lcom/instagram/android/login/b/y;
.super Lcom/instagram/e/b/b;
.source "PasswordResetFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field public final a:Lcom/instagram/android/d/j/f;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;"
        }
    .end annotation
.end field

.field public final b:Landroid/view/View$OnClickListener;

.field private c:Z

.field private d:Landroid/os/Handler;

.field private e:Lcom/instagram/android/model/b/e;

.field private f:Lcom/instagram/android/login/c;

.field private final g:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 40
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 46
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/login/b/y;->c:Z

    .line 47
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/login/b/y;->d:Landroid/os/Handler;

    .line 51
    new-instance v0, Lcom/instagram/android/login/b/z;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/z;-><init>(Lcom/instagram/android/login/b/y;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/y;->g:Landroid/content/BroadcastReceiver;

    .line 60
    new-instance v0, Lcom/instagram/android/login/b/aa;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/aa;-><init>(Lcom/instagram/android/login/b/y;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/y;->a:Lcom/instagram/android/d/j/f;

    .line 120
    new-instance v0, Lcom/instagram/android/login/b/ac;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/ac;-><init>(Lcom/instagram/android/login/b/y;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/y;->b:Landroid/view/View$OnClickListener;

    return-void
.end method

.method private Y()V
    .locals 5

    .prologue
    .line 128
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    invoke-virtual {v0}, Lcom/instagram/android/login/c;->a()Z

    move-result v0

    if-nez v0, :cond_0

    .line 129
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    invoke-virtual {v0}, Lcom/instagram/android/login/c;->b()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/j;->a(Ljava/lang/CharSequence;)V

    .line 157
    :goto_0
    return-void

    .line 133
    :cond_0
    new-instance v0, Lcom/instagram/android/login/d/i;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    new-instance v3, Lcom/instagram/android/login/b/ad;

    invoke-direct {v3, p0, p0}, Lcom/instagram/android/login/b/ad;-><init>(Lcom/instagram/android/login/b/y;Landroid/support/v4/app/Fragment;)V

    invoke-direct {v0, v1, v2, v3}, Lcom/instagram/android/login/d/i;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->X()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0}, Lcom/instagram/android/login/b/y;->aa()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0}, Lcom/instagram/android/login/b/y;->ab()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0}, Lcom/instagram/android/login/b/y;->Z()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/instagram/android/login/d/i;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method private Z()Ljava/lang/String;
    .locals 2

    .prologue
    .line 160
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "argument_reset_token"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/login/b/y;)Lcom/instagram/android/model/b/e;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->e:Lcom/instagram/android/model/b/e;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/login/b/y;Lcom/instagram/android/model/b/e;)Lcom/instagram/android/model/b/e;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 40
    iput-object p1, p0, Lcom/instagram/android/login/b/y;->e:Lcom/instagram/android/model/b/e;

    return-object p1
.end method

.method private a(Landroid/view/View;)V
    .locals 2
    .parameter

    .prologue
    .line 91
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->d:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/login/b/ab;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/login/b/ab;-><init>(Lcom/instagram/android/login/b/y;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 99
    return-void
.end method

.method private a(Landroid/view/View;Lcom/instagram/android/model/b/e;)V
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 102
    if-nez p1, :cond_0

    .line 118
    :goto_0
    return-void

    .line 106
    :cond_0
    sget v0, Lcom/facebook/aw;->fragment_password_reset_profile_picture:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    .line 108
    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 109
    invoke-virtual {v0, v4}, Lcom/instagram/android/mediacache/CircularImageView;->setVisibility(I)V

    .line 111
    sget v0, Lcom/facebook/aw;->fragment_password_reset_profile_textview:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 112
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->l()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->welcome_back_enter_twice:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v4

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    .line 113
    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 114
    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 116
    iput-boolean v4, p0, Lcom/instagram/android/login/b/y;->c:Z

    .line 117
    invoke-direct {p0, p1}, Lcom/instagram/android/login/b/y;->a(Landroid/view/View;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/login/b/y;Landroid/view/View;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 40
    invoke-direct {p0, p1}, Lcom/instagram/android/login/b/y;->a(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/login/b/y;Landroid/view/View;Lcom/instagram/android/model/b/e;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 40
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/login/b/y;->a(Landroid/view/View;Lcom/instagram/android/model/b/e;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/login/b/y;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 40
    iput-boolean p1, p0, Lcom/instagram/android/login/b/y;->c:Z

    return p1
.end method

.method private aa()Ljava/lang/String;
    .locals 2

    .prologue
    .line 261
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_password_reset_edittext_new_password:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 262
    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method private ab()Ljava/lang/String;
    .locals 2

    .prologue
    .line 266
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_password_reset_edittext_confirm_new_password:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 267
    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/login/b/y;)Z
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-boolean v0, p0, Lcom/instagram/android/login/b/y;->c:Z

    return v0
.end method

.method static synthetic c(Lcom/instagram/android/login/b/y;)V
    .locals 0
    .parameter

    .prologue
    .line 40
    invoke-direct {p0}, Lcom/instagram/android/login/b/y;->Y()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/login/b/y;)Lcom/instagram/android/login/c;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    return-object v0
.end method

.method private e(I)V
    .locals 1
    .parameter

    .prologue
    .line 273
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    if-nez v0, :cond_0

    .line 278
    :goto_0
    return-void

    .line 277
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getParent()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/MainTabActivity;

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(I)V

    goto :goto_0
.end method


# virtual methods
.method public X()Ljava/lang/String;
    .locals 2

    .prologue
    .line 257
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "argument_user_id"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .parameter
    .parameter
    .parameter

    .prologue
    .line 166
    sget v0, Lcom/facebook/ax;->fragment_password_reset:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 168
    new-instance v3, Lcom/instagram/android/login/c;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->l()Landroid/content/res/Resources;

    move-result-object v4

    sget v0, Lcom/facebook/aw;->fragment_password_reset_edittext_new_password:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    sget v1, Lcom/facebook/aw;->fragment_password_reset_edittext_confirm_new_password:I

    invoke-virtual {v2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    invoke-direct {v3, v4, v0, v1}, Lcom/instagram/android/login/c;-><init>(Landroid/content/res/Resources;Landroid/widget/EditText;Landroid/widget/EditText;)V

    iput-object v3, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    .line 173
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    new-instance v1, Lcom/instagram/android/login/b/ae;

    invoke-direct {v1, p0}, Lcom/instagram/android/login/b/ae;-><init>(Lcom/instagram/android/login/b/y;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/login/c;->a(Lcom/instagram/android/login/i;)V

    .line 182
    sget v0, Lcom/facebook/aw;->fragment_password_reset_edittext_confirm_new_password:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    new-instance v1, Lcom/instagram/android/login/b/af;

    invoke-direct {v1, p0}, Lcom/instagram/android/login/b/af;-><init>(Lcom/instagram/android/login/b/y;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 196
    sget v0, Lcom/facebook/aw;->fragment_password_reset_button:I

    invoke-virtual {v2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/y;->b:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 199
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->e:Lcom/instagram/android/model/b/e;

    if-eqz v0, :cond_0

    .line 200
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->e:Lcom/instagram/android/model/b/e;

    invoke-direct {p0, v2, v0}, Lcom/instagram/android/login/b/y;->a(Landroid/view/View;Lcom/instagram/android/model/b/e;)V

    .line 202
    :cond_0
    invoke-direct {p0, v2}, Lcom/instagram/android/login/b/y;->a(Landroid/view/View;)V

    .line 204
    return-object v2
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 282
    new-instance v0, Lcom/instagram/android/login/b/ag;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/ag;-><init>(Lcom/instagram/android/login/b/y;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 5
    .parameter

    .prologue
    .line 233
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 235
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->X()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/service/d;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 236
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/login/b/y;->c:Z

    .line 237
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->X()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/service/d;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/b/e;

    iput-object v0, p0, Lcom/instagram/android/login/b/y;->e:Lcom/instagram/android/model/b/e;

    .line 244
    :goto_0
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/y;->g:Landroid/content/BroadcastReceiver;

    new-instance v2, Landroid/content/IntentFilter;

    const-string v3, "ActivityInTab.BROADCAST_BACK_PRESSED"

    invoke-direct {v2, v3}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 248
    return-void

    .line 239
    :cond_0
    new-instance v0, Lcom/instagram/android/d/e/ah;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    invoke-static {}, Lcom/instagram/android/util/w;->a()I

    move-result v3

    iget-object v4, p0, Lcom/instagram/android/login/b/y;->a:Lcom/instagram/android/d/j/f;

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/instagram/android/d/e/ah;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/f;)V

    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->X()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/d/e/ah;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 312
    const-string v0, "password_reset"

    return-object v0
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 209
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 210
    iget-object v0, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    invoke-virtual {v0, v1}, Lcom/instagram/android/login/c;->a(Lcom/instagram/android/login/i;)V

    .line 211
    iput-object v1, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    .line 212
    return-void
.end method

.method public w()V
    .locals 2

    .prologue
    .line 216
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 218
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_password_reset_button:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 219
    iget-object v1, p0, Lcom/instagram/android/login/b/y;->f:Lcom/instagram/android/login/c;

    invoke-virtual {v1}, Lcom/instagram/android/login/c;->c()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 221
    const/16 v0, 0x8

    invoke-direct {p0, v0}, Lcom/instagram/android/login/b/y;->e(I)V

    .line 222
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 226
    invoke-super {p0}, Lcom/instagram/e/b/b;->x()V

    .line 228
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/instagram/android/login/b/y;->e(I)V

    .line 229
    return-void
.end method

.method public y()V
    .locals 2

    .prologue
    .line 252
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 253
    invoke-virtual {p0}, Lcom/instagram/android/login/b/y;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/y;->g:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 254
    return-void
.end method
